<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	大葱 永远滴神！！！
	<br>
	<center>
		<table>
		<tr>
			<td>编号</td>
			<td>书名</td>
			<td>描述</td>
			<td>作者</td>
			<td>公共图书</td>
			<td>价格</td>
			<td>类型</td>
			<td>页码</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${listBk }" var="bk">
		<tr>
			<td>${bk.id }</td>
			<td>${bk.bname }</td>
			<td>${bk.bdesc }</td>
			<td>${bk.bauthor }</td>
			<td>${bk.publicBook }</td>
			<td>${bk.price }</td>
			<td>${bk.btype }</td>
			<td>${bk.pageNum }</td>
			<td>
				<button><a href="deleteBookUrl.dc?id=${bk.id }">删除</a></button>
				<button><a href="findBookByIdUrl.dc?id=${bk.id }">修改</a></button>
			</td>
		</tr>
		</c:forEach>
		<tr>
			<td colspan="9" align="center">
				<button><a href="limit.dc?limitBk=1">首页</a></button>
				<button><a href="limit.dc?limitBk=${limitBk-1}">上一页</a></button>
					${limitBk}/${count}
				<button><a href="limit.dc?limitBk=${limitBk+1}">下一页</a></button>
				<button><a href="limit.dc?limitBk=${count}">末页</a></button>
				<button><a href="addBook.jsp">添加</a></button>
			</td>
		</tr>
	</table>
	</center>
</body>
</html>
